<template>
  <el-container class="h-full w-full">
    <el-aside width="200px">
      <el-menu
        :default-active="$route.path"
        class="h-full"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        router
      >
        <el-menu-item index="http-log">
          <el-icon>
            <document />
          </el-icon>
          <span>HTTP 日志</span>
        </el-menu-item>
        <el-menu-item index="log">
          <el-icon>
            <list />
          </el-icon>
          <span>日志</span>
        </el-menu-item>
        <el-menu-item index="setting">
          <el-icon>
            <setting />
          </el-icon>
          <span>设置</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script setup>
import { Document, List, Setting } from '@element-plus/icons-vue';
</script>

<style scoped>
.el-aside {
  background-color: #545c64;
}

.el-menu {
  border-right: none;
}
</style>
